﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TrackingAssist.WebTrends
{
    public class WebTrendsSpecFactory
    {
        public static IWebTrendsSpec CreateInstance(WebTrendsSpecType type)
        {
            switch (type)
            {
                case WebTrendsSpecType.Excel:
                    return new ExcelSpec();
                case WebTrendsSpecType.Xml:
                    return new XmlSpec();
                default:throw new NotSupportedException();
            }
        }
    }
}
